div.tab[data-name='premium'] {

  p {
    line-height: 170%;
    font-size: 120%;

    &.large {
      font-size: 180%;
      font-weight: $__fontWeightNormal;
      margin-bottom: 25px;
    }
  }

  > section {
    position: relative;
    max-width: 1280px;
    margin: 0 0 20px;
    background: $contentBackground;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

    &[data-type='intro'] {
      @include mask("icon-premium", $textColorLight, 48px);
      padding: 16px 20px 24px 100px;

      &::before {
        width: 96px;
        height: 75px;
        pointer-events: none;
      }

      > a {
        vertical-align: top;
        display: inline-block;
        margin-top: 30px;
        cursor: pointer;

        &[data-type="activate"] {
          padding: 6px 8px;
          margin-left: 10px;
        }

        &[data-type="premium"] {
          @extend %highlightButton;
        }
      }

      > span[data-type='activated'] {
        @include mask("icon-check", $colorSuccess, 26px);
        position: relative;
        display: block;
        font-size: 150%;
        color: $colorSuccess;
        background: rgba($colorSuccess, 0.2);
        padding: 10px 15px 10px 54px;
        margin: 30px 0 10px 0;

        &::before {
          width: 50px;
        }
      }

      > span[data-type='key'] {
        display: block;
        font-size: 80%;

        > span {
          direction: ltr;
          margin: 0 5px;
          font-family: Consolas, sans-serif;
          user-select: text;
        }

        > a {
          @include mask("icon-close", $colorError, 20px);
          position: relative;
          display: inline-block;
          width: 20px;
          height: 20px;
          vertical-align: top;
          cursor: pointer;
          margin-top: -3px;
        }
      }

      > div[data-type='licenseKey'] {
        margin: 30px 0 20px 0;
        padding: 10px 12px;
        max-width: 600px;
        background: $textColor;
        color: $textColorInverted;
        border-radius: 10px;
        transition: opacity 0.5s;
        @extend %hidden;

        &.visible {
          @extend %visible;
        }

        > strong {
          display: block;
          margin-bottom: 10px;
        }

        > input[type='text'] {
          display: block;
          font-size: 140%;
          letter-spacing: 3px;
          height: 36px;
          padding: 7px 10px;
          font-family: Consolas, sans-serif;
          background: rgba(255, 255, 255, 0.1);
          text-transform: uppercase;
          color: $textColorInverted;
          border: none;
        }

        > button[type='submit'] {
          background: $contentBackground;
          color: $textColor;
          padding: 4px 12px;
          font-weight: $__fontWeightMedium;
          font-size: 100%;
          border-radius: 25px;
          box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
        }
      }
    }

    &:not([data-type='intro']) {
      height: 600px;
      overflow: hidden;

      @media (max-width: 1600px) {
        height: 400px;
      }

      @media (max-width: 1150px) {
        height: auto;
      }

      > img {
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto;
        left: 0;
        width: 100%;

        @media (max-width: 1150px) {
          position: relative;
        }
      }

      > div {
        position: absolute;

        @media (max-width: 1150px) {
          position: relative;
          padding: 15px 20px 25px 20px;
          z-index: 4;
        }
      }
    }

    &[data-type='earlyAccess'] {
      background-color: #cfe0e8;

      > img {
        @media (max-width: 1600px) {
          top: 0;
          bottom: unset;
        }
      }

      > div {
        @media (min-width: 1151px) {
          top: 12%;
          right: 3%;
          width: 40%;
        }
      }
    }

    &[data-type='customBackground'] {
      background-color: #f7e4c3;

      > div {
        @media (min-width: 1151px) {
          text-align: center;
          top: 4%;
          left: 10%;
          width: 80%;
        }
      }
    }

    &[data-type='linkchecker'] {
      background-color: #2190ae;

      > div {
        color: $textColorInverted;

        @media (min-width: 1151px) {
          top: 15%;
          right: 4%;
          width: 50%;
        }
      }
    }

    &[data-type='themes'] {
      background-color: #222222;

      > img {
        bottom: unset;
      }

      > div {
        color: $textColorInverted;

        @media (min-width: 1151px) {
          top: 16%;
          right: 3%;
          width: 43%;
        }
      }
    }

    &[data-type='customCss'] {
      background-color: #333a45;

      > div {
        color: $textColorInverted;

        @media (min-width: 1151px) {
          top: 12%;
          right: 4%;
          width: 50%;
        }
      }
    }

    &[data-type='importExportSettings'] {
      @include mask("settings/icon-importExport", $textColor, 72px);
      background-color: #9a7b7c;

      @media (min-width: 1151px) {
        height: 400px;
      }

      &::before {
        -webkit-mask-position: 96% 18%;
        z-index: 3;
      }

      > img {
        height: 100%;
      }

      > div {
        color: $textColorInverted;

        @media (min-width: 1151px) {
          top: 15%;
          left: 4%;
          width: 50%;
        }
      }
    }

    &[data-type='sidebarWidth'] {
      background-color: #dbd6d3;

      > div {
        text-align: left;

        @media (min-width: 1151px) {
          top: 45%;
          left: 5%;
          width: 65%;

          > p {
            font-weight: $__fontWeightNormal;
          }
        }

        @media (max-width: 1600px) and (min-width: 1151px) {
          top: 30%;
          width: 50%;
        }
      }

      span.cursor {
        position: absolute;
        display: block;
        width: 22px;
        height: 34px;
        top: 50%;
        right: 284px;
        z-index: 5;
        animation: cursor 4s infinite;

        > img {
          width: 100%;
        }
      }

      section.sidebarMockup {
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background: $contentBackground;
        padding: 0 30px 0 70px;
        outline: 10px solid transparent;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        z-index: 3;
        animation: sidebar 4s infinite;

        &[data-pos='right'] {
          transform: translate3d(350px, 0, 0);
          left: unset;
          right: 0;
        }

        &.visible {
          transform: translate3d(0, 0, 0);
        }

        > p {
          position: relative;
          width: 100%;
          height: 10px;
          background: rgba(0, 0, 0, 0.06);
          transition: background-color 0.3s;
          margin: 47px 0;

          &::before {
            content: "";
            position: absolute;
            top: -10px;
            left: -50px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: inherit;
          }
        }
      }
    }
  }
}

@keyframes cursor {
  0% {
    transform: translate3d(-40px, 30px, 0);
  }
  20% {
    transform: translate3d(0, 0, 0);
  }
  40% {
    transform: translate3d(-70px, 0, 0);
  }
  60% {
    transform: translate3d(30px, 0, 0);
  }
  80% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-40px, 30px, 0);
  }
}

@keyframes sidebar {
  10% {
    outline-color: transparent;
  }
  20% {
    width: 300px;
    outline-color: rgba(255, 255, 255, 0.5);
  }
  40% {
    width: 370px;
  }
  60% {
    width: 270px;
  }
  80% {
    width: 300px;
    outline-color: rgba(255, 255, 255, 0.5);
  }
  90% {
    outline-color: transparent;
  }
}

@import "../../rtl/include/settings/premium";